<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>发表东阿<?php echo $cInfos['typename']; ?>,东阿信息港,东阿信息服务</title>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<meta name="description" content="东阿县最大的信息服务网站,提供东阿本地最新最全的信息资讯" />
<meta name="keywords" content="东阿县,东阿信息港,东阿房产信息,东阿招聘信息,二手信息,发布信息" />

<script language='javascript' src='js/main.js'></script>
<script language="javascript" src="http://api.51ditu.com/js/maps.js"></script>
<script language="javascript" src="http://api.51ditu.com/js/ezmarker.js"></script>


<script language="javascript">
<!--
function checkSubmit()
{

	if(document.form1.title.value==""){
		alert("<?php echo $cInfos['titlename']; ?>不能为空！");
		document.form1.title.focus();
		return false;
	}

	if(document.form1.typeid.value==0){
		alert("隶属栏目必须选择！");
		return false;
	}

	if(document.form1.typeid.options && document.form1.typeid.options[document.form1.typeid.selectedIndex].className!='option3')
	{
		alert("隶属栏目必须选择白色背景的项目！");
		return false;
	}

	if(document.form1.vdcode.value==""){
		document.form1.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}

}
-->
</script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location"><span class="titAddChannel1 icon">发表</span><?php echo $cInfos['typename']; ?></div>
        <form class="mTB10 mL10 mR10" name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
          <table width="100%" border="0" cellpadding="2" cellspacing="1" style="margin-bottom:6px" class="submit">
            <thead>
              <tr bgcolor="#F0FBE3">
                <th colspan="4" align=left ><strong >常规参数：</strong> 
				</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="19%" height="28" align="right" bgcolor="#FFFFFF"><?php echo $cInfos['titlename']; ?>：</td>
                <td width="81%" colspan="3" bgcolor="#FFFFFF"><input name="title" type="text" id="title" size="30" class="nb" style='width:250px' />
                  <font color="#FF0000">*</font> </td>
              </tr>
             
      
      		<input type='hidden' name='typeid' value=7 />;
      
		<tr>
  <td align="right" valign="top"><font color="#FF0000">*</font>商家类型：</td>

  <td><input type='hidden' id='hidden_biztype' name='biztype' value='0' />
<span id='span_biztype'></span>
<span id='span_biztype_son'></span>
<script language="javascript" type="text/javascript" src="/images/enums.js"></script>
<script language='javascript' type='text/javascript' src='/data/enums/biztype.js'></script>
<script language="javascript" type="text/javascript">MakeTopSelect("biztype", 0);</script>
</td>
</tr>

      
      
             
              <tr >
                <td height="28" align="right"  class='tdline'><font color="#FF0000">*</font>上传图片：</td>
                <td colspan="3"  class='tdline'><input name="litpic" type="file" id="litpic" style="width:300px" onchange="SeePicNew('divpicview',this);"  />
                  <div id='divpicview' class='divpre'></div></td>
              </tr>

			   <tr>
  <td align="right" valign="top">商家地址：</td>
  <td><input type='text' name='address' id='address' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">联系电话：</td>

  <td><input type='text' name='tel' id='tel' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">传真号码：</td>
  <td><input type='text' name='fax' id='fax' style='width:250px'  class='text' value='' />
</td>
</tr>
<tr>
  <td align="right" valign="top">公司介绍：</td>
  <td><textarea name='intro' id='intro' style='width:100%;height:150px'></textarea>

</td>
</tr>
<tr>
  <td align="right" valign="top">地图位置：</td>
  <td><input type='text' readonly=true name='mappos' id='mappos' style='width:150px'  class='text' value='' />
  <script language="javascript">
var ez=new LTEZMarker("ezmarker");
ez.setSearch(false,"");//不显示搜索控件
ez.setPlaceList(false);//不显示地图浏览控件
var map=document.getElementById("mappos");

ez.setDefaultView(new LTPoint(11625000,3633000),2); //用座标定义初始位置，与下面定义可二选一或不选
function setMap(point,zoom)
	{
		document.getElementById("mappos").value=point.getLongitude()+","+point.getLatitude()+","+zoom;
	}
 LTEvent.addListener(ez,"mark",setMap);//"mark"是标注事件
</script> 
</td>
</tr>




              <?php
      
      //自定义字段
 //     PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
      //游客强制加验证码，会员则判断后台开关
      if(!$cfg_ml->IsLogin() || $cfg_vdcode_member=='Y')
      {
      ?>
              <tr>
                <td align="right" valign="top">验证码：</td>
                <td><input class="text" name="vdcode" type="text" id="vdcode" size="10" style='width:50px;text-transform:uppercase;' />
                  <img id="yzm" src='../include/vdimgck.php' alt="验证码" width='50' height='20' align="absmiddle" /> <a onclick="javascript:reloadyzm()">看不清验证码?点击这里</a></td>
              </tr>
              <?php
      }
      else
      {
      	echo "<input name='vdcode' type='hidden' id='vdcode' value='notuse' />";
      }
      ?>
            </tbody>
            <tfoot>
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
		  <input type='hidden' name='dede_addonfields' value="biztype,stepselect;intro,htmltext;address,text;mappos,text;tel,text;fax,text">

        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<script language="JavaScript">
		<!--
			function reloadyzm()
			{
				var timenow = new Date().getTime(); 
				document.getElementById('yzm').src='../include/vdimgck.php?'+timenow;
			}
			function markmap()
			{
				return false;
			}
		//-->
		</script>	
</body>
</html>
